@import "./variable.scss", "./layout.scss", "./util.scss", "./component.scss";

* {
  padding: 0;
  margin: 0;
  border-radius: 0;
  box-sizing: border-box;
  word-wrap: break-word; // 解决长单词会溢出父元素
  -webkit-text-size-adjust: 100%; // 屏幕旋转字体大小保持一致
  -webkit-font-smoothing: antialiased; // 字体抗锯齿
  -webkit-overflow-scrolling: touch; // 让自定义滚动条拥有顺畅的滑动
  -webkit-tap-highlight-color: transparent; // 移动端点击不高亮
}

div,
ul,
li,
view,
cover-view {
  box-sizing: border-box;
  word-wrap: break-word; // 解决长单词会溢出父元素
  -webkit-text-size-adjust: 100%; // 屏幕旋转字体大小保持一致
  -webkit-font-smoothing: antialiased; // 字体抗锯齿
  -webkit-overflow-scrolling: touch; // 让自定义滚动条拥有顺畅的滑动
  -webkit-tap-highlight-color: transparent; // 移动端点击不高亮
}

html,
page {
  display: block;
  height: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: var(--font-size);
  line-height: 1.5;
  color: var(--color-black);
}

body,
#app {
  display: block;
  height: 100%;
  font-size: var(--font-size);

  ul {
    list-style: none;
  }

  a {
    color: var(--color-primary);
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  img {
    display: block;
    max-width: 100%;
    object-fit: cover;
  }

  input,
  textarea,
  button {
    font-family: inherit;
    line-height: inherit;
    caret-color: var(--color-primary);

    &::placeholder {
      color: var(--color-thin) !important;
    }
  }

  .u-button {
    height: 90rpx !important;
  }

  .u-navbar {
    .u-navbar__content {
      .u-navbar__content__title {
        width: 600rpx !important;
        text-align: left;
        font-size: 40rpx;
        letter-spacing: 5rpx;
        color: white;
      }
    }
  }

  .header-left {
    .u-navbar {
      .u-navbar__content {
        .u-navbar__content__title {
          width: 680rpx !important;
        }
      }
    }
  }
}
